<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>论坛后台管理</title>
		<link rel="stylesheet" type="text/css" href="{$views_home}css/base.css"/>
	
		<style>
		  .admin_cg_top_2 div:hover{
				background: #c3f9f8;
				color:orange;
			}
			.admin_cg_main_left a div:hover{
				background:  #c3f9f8;
				color: orange;
			}	
			a:hover{
				color:orange;
			}
			
		/***********后台版块管理*********************/
			.admin_cg{
				width:100%;
				background: #fff;
				margin:0 auto;
			

			}
		/**********版块上方标题部分top********************/
			.admin_cg_top{
				width:1200px;
				height:120px;
				margin:0 auto;
				background: #eff4f7;
				
			}
			.admin_cg_top_1{
				width:1200px;
				height:40px;
				background: #eff4f7;

			}
			.admin_cg_top_1_p{
				width:300px;
				height:30px;
				float:left;
				margin-left:750px;
				margin-top:5px;
				text-align: center;
				line-height: 30px;
				background: #eff4f7;
			}
			.admin_cg_top_1_put{
				width:80px;
				height:38px;
				float:left;
				margin-left:10px;
				background: #fff;
				font-size:14px;

			}
			.admin_cg_top_2{

				width:1200px;
				height:78px;
				background: #eff4f7;
			}

			.admin_cg_top_2_put1{
				width:100px;
				height:50px;
				margin-left:200px;
				background: #eff4f7;
				float:left;
				margin-top:30px;
				border-radius:10px 10px 0px 0px;

			}
			.admin_cg_top_2_put1 span{
				display: inline-block;
			
				font-size:20px;
				font-weight: bold;
				color:#639bb0;
				margin-top:20px;
				margin-left: 10px;
				
				
			}
			.admin_cg_top_2_put2{
				width:100px;
				height:50px;
				background: #eff4f7;
				float:left;
				margin-top:30px;
				margin-left: 5px;
				border-radius:10px 10px 0px 0px;

			}
			.admin_cg_top_2_put2 span{
				display: inline-block;
			
				font-size:20px;
				font-weight: bold;
				color:#639bb0;
				margin-top:20px;
				margin-left: 10px;
				
			}	
			.admin_cg_top_2_put3{
				width:100px;
				height:50px;
				background:#eff4f7;
				float:left;
				margin-top:30px;
				margin-left: 5px;
				border-radius:10px 10px 0px 0px;

			}
			.admin_cg_top_2_put3 span{
				display: inline-block;
			
				font-size:20px;
				font-weight: bold;
				color:#639bb0;
				margin-top:20px;
				margin-left: 10px;
				
			}	
			.admin_cg_top_2_put4{
				width:100px;
				height:50px;
				background: #eff4f7;
				float:left;
				margin-top:30px;
				margin-left: 5px;
				border-radius:10px 10px 0px 0px;

			}
			.admin_cg_top_2_put4 span{
				display: inline-block;
			
				font-size:20px;
				font-weight: bold;
				color:#639bb0;
				margin-top:20px;
				margin-left: 10px;

			}	
		/***********版块主要内容main开始*******************/
			.admin_cg_main{
				width:1200px;
				min-height:850px;
				margin:0 auto;
				background:#FFFFE0;
			}
			/***********版块左侧导航left***********/
			.admin_cg_main_left{
				width:190px;
				min-height:850px;
				margin:0 auto;
				background:#eff4f7;
				float:left;
				border-right:8px #c3f9f8 solid;
				border-top:12px #c3f9f8 solid; 
			}
			.admin_cg_main_left_div{
				width:188px;
				height:30px;
				background: #eff4f7;
				margin-top:5px;
				border-bottom:2px #c3f9f8 solid;
				
			}
			.admin_cg_main_left_div span{
				display: inline-block;	
				margin-top:10px;
				margin-left:70px;
			}

			.admin_cg_main_left_bottom{
				width:186px;
				height:100px;
				margin-left:auto;
				margin-top:500px;
				background:#eff4f7;
				border-top:1px #ccc dashed;
			}
			.admin_cg_main_left_bottom_1{
				margin-top:15px;
				margin-left:30px;
			}
			.admin_cg_main_left_bottom_1 li{
				float:left;
			
			}
			.admin_cg_main_left_bottom_2{
				margin-top:10px;
				margin-left:30px;
			}
			.admin_cg_main_left_bottom_2 li{
				float:left;	
			}
			/***********版块右侧主要内容right  有两部分********/

			/********版块右侧主要内容right 站点信息开始*******/
			.admin_cg_main_right{
				width:996px;
				min-height:850px;
				margin:0 auto;
				background: #FFFFE0;
				float:left;
				border-top:12px #c3f9f8 solid; 
			}
			.admin_cg_main_right_head{
				width:960px;
				height:60px;
				margin:0 auto;
				background: #FFFFE0;
				line-height: 60px;	
				border-bottom:#c3f9f8 2px dashed;

			}
			.admin_cg_main_right_body{
				width:960px;
				height:90px;
				margin:0 auto;
				background: #FFFFE0;
				border-bottom:#c3f9f8 2px dashed;
			}
			.admin_cg_main_right_body1{
				width:960px;
				height:35px;
				margin:0 auto;
				line-height: 35px;
			}
			.admin_cg_main_right_body2{
				width:960px;
				height:50px;
				margin:0 auto;
				line-height: 50px;
			}
			.admin_cg_main_right_body2_put1{
			
				width:260px;
				height:20px;
				float:left;
				margin:0 auto;
				margin-top:20px;
			}
			.admin_cg_main_right_body2_put2{
				width:660px;
				float:left;
				margin:0 auto;
				margin-left:20px;
				margin-top:5px;
			}
			
			.admin_cg_main_right_bottom{
				width:960px;
				height:130px;
				margin:0 auto;
				background: #FFFFE0;
				border-bottom:#c3f9f8 2px dashed;
			}
			.admin_cg_main_right_bottom_head{
				width:960px;
				height:40px;
				margin:0 auto;
				color:#639bb0;
				font-size:16px;
				font-weight: bold;
				background: #eff4f7;
				line-height: 40px;
			}
			.admin_cg_main_right_bottom1{
				width:960px;
				height:30px;
				margin:0 auto;

				line-height: 30px;
			}

			.admin_cg_main_right_bottom2{
				width:960px;
				height:55px;
				margin:0 auto;
				line-height: 55px;
			}


			.admin_cg_main_right_bottom2_put{
				width:260px;
				float: left;
				margin-top:5px;
			}
			.admin_cg_main_right_bottom2_put2{
				width:660px;
				float: left;
				margin:0 auto;
				margin-left:20px;
				margin-top:5px;
			}
			.admin_cg_main_right_last{
				width:960px;
				height:40px;
				margin:0 auto;
				background: #FFFFE0;
				line-height: 30px;
				border-bottom:#c3f9f8 2px dashed;
			}
			.admin_cg_main_right_last input{
				width:60px;
				height:30px
			    margin-left: 120px;
			    margin-top: 10px;
			    font-size: 16px;
			    color: #fff;
			    background: #7B68EE;
			    cursor: pointer; 
			}
		/*********	版块右侧主要内容right 站点信息  结束**********/

		/*******    版块右侧主要内容right2  友情链接 开始   *******/
			.admin_cg_main_right2{
				width:996px;
				min-height: 650px;
				margin:0 auto;
				background: #FFFFE0;
				float:left;
				border-top:12px #c3f9f8 solid; 
			}
			.admin_cg_main_right2_head{
				width:960px;
				height:60px;
				margin:0 auto;
				background: #FFFFE0;
				line-height: 60px;	
				border-bottom:#c3f9f8 2px dashed;

			}
			.admin_cg_main_right_tip{
				width:960px;
				height:40px;
				margin:0 auto;
				color:#639bb0;
				font-size:16px;
				font-weight: bold;
				background: #eff4f7;
				line-height: 40px;
			}
			.admin_cg_main_right_tip2{
				width:960px;
				height:40px;
				margin:0 auto;
				background: #FFFFE0;
				line-height: 40px;
				border-bottom:#c3f9f8 2px dashed;
			}
		/***************删除 修改 添加操作开始**********************/
			.cg_site_table1{
				width:960px;
				margin:0 auto;
			}
			.cg_site_table1 tr{
				width:960px; 
				height:40px;
			}
			
			.cg_site_table1_put_short{
				width:60px;
				margin-left:20px;

			}
			.cg_site_table1_put_long{
				width:240px;
				margin-left:30px;
			}
			.cg_site_table1_put{
				width:120px;
				margin-left:20px;
				
			}
			/***************删除 修改 添加操作结束**************/	
		/*******  版块右侧主要内容right2 友情链接 结束  ****************/

		/*************  用户管理 右侧 开始 ****************************/
			.admin_cg_main_edit_user{
				width:996px;
				min-height: 650px;
				margin:0 auto;
				background: #FFFFE0;
				float:left;
				border-top:12px #c3f9f8 solid; 
			}
			.admin_cg_main_edit_user_head{
				width:960px;
				height:60px;
				margin:0 auto;
				background: #FFFFE0;
				line-height: 60px;	
				border-bottom:#c3f9f8 2px dashed;

			}
			.admin_cg_main_edit_user_tip{
				width:960px;
				height:40px;
				margin:0 auto;
				color:#639bb0;
				font-size:16px;
				font-weight: bold;
				background: #eff4f7;
				line-height: 40px;
			}
		/***************伪删除 用户操作开始**********************/
			.edit_user_table1{
				width:960px;
				margin:0 auto;
			}
			.edit_user_table1 tr{
				width:960px; 
				height:40px;
			}
			
			.edit_user_table1 td{
				width:120px;
				margin-left:20px;
				
			}
			.edit_user_table1 td a{
				text-decoration: underline;
				color:#639bb0;
			}
			.edit_user_table1 td a:hover{
				text-decoration: underline;
				color:#f90;
			}
			/***************伪删除用户操作结束**************/
			/**************积分,详情链接 开始********************/	
			.user_detail{
				width:996px;
				min-height: 650px;
				margin:0 auto;
				background: #FFFFE0;
				float:left;
				border-top:12px #c3f9f8 solid; 
			}
			.user_detail_head{
				width:960px;
				height:60px;
				margin:0 auto;
				background: #FFFFE0;
				line-height: 60px;	
				border-bottom:#c3f9f8 2px dashed;

			}
			
			.user_detail_username{
				width:960px;
				height:70px;
				margin:0 auto;
				background: #FFFFE0;
				border-bottom:#c3f9f8 2px dashed;
			}
			.user_detail_username1{
				width:960px;
				height:35px;
				margin:0 auto;
				background: #FFFFE0;
				font-weight: bold;
				line-height: 35px;
				font-size:15px;	
			}
			.user_detail_username2{
				width:960px;
				height:35px;
				margin:0 auto;
				background: #FFFFE0;
				line-height: 35px;	
				font-size:14px;	
			}

			.user_detail_tx{
				width:960px;
				height:160px;
				margin:0 auto;
				background: #FFFFE0;
				border-bottom:#c3f9f8 2px dashed;
			}
			.user_detail_tx_font{
				width:960px;
				height:30px;
				margin:0 auto;
				background: #FFFFE0;
				font-weight: bold;
				line-height: 30px;
				font-size:15px;	
			}
			.user_detail_tx_pic{
				width:120px;
				height:120px;
				margin-top:10px;
			//	background: #fff url('{$views_home}image/login_after_pic.gif')no-repeat;
			}
			/**********详情form表单 开始***************/
			.user_detail_body{
				width:960px;
				height:90px;
				margin:0 auto;
				background: #FFFFE0;
				border-bottom:#c3f9f8 2px dashed;
			}
			.user_detail_body1{
				width:960px;
				height:35px;
				margin:0 auto;
				line-height: 35px;
			}
			.user_detail_body2{
				width:960px;
				height:50px;
				margin:0 auto;
				line-height: 50px;
			}
			.user_detail_body2_put1{
			
				width:260px;
				height:20px;
				float:left;
				margin:0 auto;
				margin-top:20px;
			}
			.user_detail_body2_put2{
				width:660px;
				float:left;
				margin:0 auto;
				margin-left:20px;
				margin-top:5px;
			}
			/********************************/
			.user_detail_body_two{
				width:960px;
				height:70px;
				margin:0 auto;
				background: #FFFFE0;
				border-bottom:#c3f9f8 2px dashed;
			}
			.user_detail_body_two1{
				width:960px;
				height:30px;
				margin:0 auto;
				line-height: 30px;
			}

			.user_detail_body_two2{
				width:960px;
				height:30px;
				margin:0 auto;
				line-height: 55px;
			}


			.user_detail_body_two2_put{
				width:260px;
				float: left;
				margin-top:5px;
			}
			.user_detail_body_two2_put2{
				width:660px;
				float: left;
				margin:0 auto;
				margin-left:20px;
				margin-top:5px;
			}
			.user_detail_body_tip{
				width:960px;
				height:40px;
				margin:0 auto;
				color:#639bb0;
				font-size:16px;
				font-weight: bold;
				background: #eff4f7;
				line-height: 40px;
			}

			.user_detail_body_button{
				width:60px;
				height:30px;
			    margin-left: 120px;
			    margin-top: 10px;
			    font-size: 16px;
			    color: #fff;
			    background: #7B68EE;
			    cursor: pointer; 
			}
			/**********详情form表 结束***************/

			/**************积分,详情链接 结束********************/	
			/*************禁止 IP  开始****************/
			.admin_cg_main_edit_user2 {
				width:996px;
				min-height: 650px;
				margin:0 auto;
				background: #FFFFE0;
				float:left;
				border-top:12px #c3f9f8 solid; 
			}
			.admin_cg_main_edit_user2_head{
				width:960px;
				height:60px;
				margin:0 auto;
				background: #FFFFE0;
				line-height: 60px;	
				border-bottom:#c3f9f8 2px dashed;

			}
			.admin_cg_main_edit_user2_tip{
				width:960px;
				height:40px;
				margin:0 auto;
				color:#639bb0;
				font-size:16px;
				font-weight: bold;
				background: #eff4f7;
				line-height: 40px;
			}
			.admin_cg_main_edit_user2_tip2{
				width:960px;
				height:40px;
				margin:0 auto;
				background: #FFFFE0;
				line-height: 40px;
				border-bottom:#c3f9f8 2px dashed;
			}
			
			/*************禁止 IP  结束****************/
		/*************  用户管理 右侧 结束 ****************************/
		/*****************版块管理 右侧 开始**********************/
			/************管理版块 开始****************************/
			.admin_cg_category_right{
				width:996px;
				min-height:850px;
				margin:0 auto;
				background: #FFFFE0;
				float:left;
				border-top:12px #c3f9f8 solid; 
			}
			.admin_cg_category_right_head{
				width:960px;
				height:60px;
				margin:0 auto;
				background: #FFFFE0;
				line-height: 60px;	
				border-bottom:#c3f9f8 2px dashed;

			}
			.admin_cg_category_right_body{
				width:960px;
			//	height:45px;
				margin:0 auto;
				background: #FFFFE0;
			}
			.admin_cg_category_right_body_head{
				width:960px;
				height:45px;
				margin:0 auto;
				background: #FFFFE0;
				border-bottom:#c3f9f8 2px dashed;
			}
			.admin_cg_category_right_body_head_p1{
				width:100px;
				height:45px;
				line-height: 45px;
				background: #FFFFE0;
				font-size:14px;
				font-weight:bold;
				float:left;
				margin-left:20px;
			}
			.admin_cg_category_right_body_head_p2{
				width:80px;
				height:45px;
				line-height: 45px;
				background: #FFFFE0;
				font-size:14px;
				font-weight:bold;
				float:left;
				margin-left:40px;
			}
			.admin_cg_category_right_body_head_p3{
				width:80px;
				height:45px;
				line-height: 45px;
				background:#FFFFE0;
				font-size:14px;
				font-weight:bold;
				float:left;
				margin-left:300px;
			}
			.admin_cg_category_right_body_head_p4{
				width:80px;
				height:45px;
				line-height: 45px;
				background:#FFFFE0;
				font-size:14px;
				font-weight:bold;
				float:left;
				margin-left:110px;
			}
			.admin_cg_category_right_body_parent{
				width:960px;
				height:40px;
				margin:0 auto;
				background:#FFFFE0;
				border-bottom:#c3f9f8 1px solid;
			}
			.admin_cg_category_right_body_parent_put1{
				width:60px;
				height:20px;
				float:left;
				margin-top:10px;
				margin-left:20px;
			}
			.admin_cg_category_right_body_parent_put2{
				width:120px;
				height:20px;
				float:left;
				margin-top:10px;
				margin-left:50px;
			}
			.admin_cg_category_right_body_parent_put3{
				width:120px;
				height:20px;
				float:left;
				margin-top:10px;
				margin-left:430px;
			}
			.admin_cg_category_right_body_parent_button{
				width:40px;
				height:20px;
				float:left;
			    margin-left: 20px;
			    margin-top: 10px;
			    color:#7B68EE;
			    cursor: pointer; 
			}
			.admin_cg_category_right_body_son{
				width:960px;
				height:40px;
				margin:0 auto;
				background: #FFFFE0;
				border-bottom:#c3f9f8 1px solid;
			}
			.admin_cg_category_right_body_son_put1{
				width:60px;
				height:20px;
				float:left;
				margin-top:10px;
				margin-left:20px;
			}
			.admin_cg_category_right_body_son_put2{
				width:120px;
				height:20px;
				float:left;
				margin-top:10px;
				margin-left:100px;
			}
			.admin_cg_category_right_body_son_put3{
				width:120px;
				height:20px;
				float:left;
				margin-top:10px;
				margin-left:200px;
			}
			.admin_cg_category_right_body_son_put4{
				width:120px;
				height:20px;
				float:left;
				margin-top:10px;
				margin-left:56px;
			}
			.admin_cg_category_right_body_son_button{
				width:40px;
				height:20px;
				float:left;
			    margin-left: 20px;
			    margin-top: 10px;
			    color:#7B68EE;
			    cursor: pointer; 
			}
			.admin_cg_category_right_body_bottom{
				width:960px;
				height:40px;
				margin:0 auto;
				color:#639bb0;
				font-size:16px;
				font-weight: bold;
				line-height: 40px;
			}

			.admin_cg_category_right_body_button{
				width:60px;
				height:30px;
			    margin-left: 120px;
			    margin-top: 10px;
			    font-size: 16px;
			    color: #fff;
			    background: #7B68EE;
			    cursor: pointer; 
			}
			/*************管理版块结束***************************/

			/************添加版块 开始****************************/
			.admin_cg_add_category{
				width:996px;
				min-height: 650px;
				margin:0 auto;
				background: #FFFFE0;
				float:left;
				border-top:12px #c3f9f8 solid; 
			}
			.admin_cg_add_category_head{
				width:960px;
				height:60px;
				margin:0 auto;
				background: #FFFFE0;
				line-height: 60px;	
				border-bottom:#c3f9f8 2px dashed;

			}
			.admin_cg_add_category_tip{
				width:960px;
				height:40px;
				margin:0 auto;
				color:#639bb0;
				font-size:16px;
				font-weight: bold;
				background: #eff4f7;
				line-height: 40px;
			}
			.admin_cg_add_category_tip2{
				width:960px;
				height:40px;
				margin:0 auto;
				background: #FFFFE0;
				line-height: 40px;
				border-bottom:#c3f9f8 2px dashed;
			}
			.admin_cg_add_category_div1{
				width:960px;
				height:40px;
				margin:0 auto;
				background: #FFFFE0;
				border-bottom:#c3f9f8 2px dashed;
			}
			.admin_cg_add_category_div1_p{
				width:60px;
				line-height: 40px;
				float:left;
				font-size:14px;
				margin-left:20px;
			}
			.admin_cg_add_category_div1_put{
				width:200px;
				height:22px;
				line-height:30px;
				float:left;
				margin-left:160px;
				margin-top:10px;

			}
			.admin_cg_add_category_div2{
				width:960px;
				height:40px;
				margin:0 auto;
				background: #FFFFE0;
				border-bottom:#c3f9f8 2px dashed;
			}
			.admin_cg_add_category_div2_p{
				width:80px;
				height:40px;
				line-height: 40px;
				float:left;
				font-size:14px;
				margin-left:20px;
			}
			.admin_cg_add_category_div2_sel{
				display: block;
				width:200px;
				height:25px;
				line-height:40px;
				float:left;
				font-size:14px;
				margin-left:140px;
				margin-top:10px;
			}
			/*************添加版块 结束***************************/
			/*****************版块管理 版块 结束**********************/

			/*****************帖子管理 版块 开始**********************/


			/*****************帖子管理 版块 结束**********************/
		/***********版块主要内容main结束*****************************/
		</style>
	</head>
	<body>
		<!--  后台版块管理  -->
		<div class="admin_cg">
				
			<!--  版块上方标题部分top  -->
			<div class="admin_cg_top">
				<div class="admin_cg_top_1 clearFix">
					<div class="admin_cg_top_1_p">你好,管理员&nbsp;<span style="font-weight:bold; color:#54FF9F;">admin</span>&nbsp;<a href="{$web_site}admin_login.php">【退出】</a></div>

					<a href="{$web_site}index.php"><input class="admin_cg_top_1_put" type="submit" value="站点首页"></a>

				</div>
				
				<div class="admin_cg_top_2">

					<!--  站点信息   -->
					<a href="{$web_site}admin_cg.php?bighead=1&cg_number=1">
						<div class="admin_cg_top_2_put1">
							<span>站点信息</span>
						</div>
					</a>
					<!--  用户管理   -->
					<a href="{$web_site}admin_cg.php?bighead=2&cg_number=3">
						<div class="admin_cg_top_2_put2">
							<span>用户管理</span>
						</div>
					</a>
					<!--  板块管理   -->
					<a href="{$web_site}admin_cg.php?bighead=3&cg_number=5">
						<div class="admin_cg_top_2_put3">
							<span>板块管理</span>
						</div>
					</a>
					<!--  帖子管理   -->
					<a href="{$web_site}admin_cg.php?bighead=4&cg_number=7">
						<div class="admin_cg_top_2_put4">
							<span>帖子管理</span>
						</div>
					</a>
				</div>
			</div>
		<!--  公共top部分结束 -->
			
			<!-- 版块主要内容main   111111开始 -->
			{if $_GET['bighead']}
			{if $_GET['bighead'] == 1 || $_GET['bighead'] == null}

			<div class="admin_cg_main clearFix">
				<!--  版块左侧导航left -->
				<div class="admin_cg_main_left">
					<a href="{$web_site}admin_cg.php?bighead=1&cg_number=1">
						<div class="admin_cg_main_left_div"><span>站点信息</span></div>
					</a>
					<a href="{$web_site}admin_cg.php?bighead=1&cg_number=2">
						<div class="admin_cg_main_left_div"><span>友情链接</span></div>
					</a>
					<!--  版块左侧导航left 底部 (可共用)   -->
					<div class="admin_cg_main_left_bottom">
						<ul class="admin_cg_main_left_bottom_1 clearFix">
							<li>Powered</li>
							<li>&nbsp;by&nbsp;</li>
							<li style="font-weight:bold"><a href="">{$web}&nbsp;</a></li>
							<li>v2</li>
						</ul>
						<ul class="admin_cg_main_left_bottom_2 clearFix">
							<li>&copy;</li>
							<li>&nbsp;2017&nbsp;</li>
							<li><a href="">{$web}&nbsp;Inc.</a></li>
						</ul>
					</div>
				</div>

				<!--  版块右侧主要内容right 有两部分-->
				
				<!--  版块右侧主要内容right 站点信息-->

				{if $_GET['cg_number'] == null  ||  $_GET['cg_number'] == 1}
				
				<div class="admin_cg_main_right">
					<div class="admin_cg_main_right_head" style="font-size:16px; font-weight: bold; color:#639bb0;">
						<span>站点信息</span>
					</div>
				<form action="{$admin_2}admin_cg_site.php" method="post" enctype="multipart/form-data">

				{foreach $res_show as $k_show => $v_show}
					<div class="admin_cg_main_right_body">
						<div class="admin_cg_main_right_body1">站点名称:</div>

						<div class="admin_cg_main_right_body2 clearFix">
							<input class="admin_cg_main_right_body2_put1" type="text" name="stitle" value="{$v_show['stitle']}">
							<div class="admin_cg_main_right_body2_put2" style="color:#90EE90;">站点名称，将显示在浏览器窗口标题等位置</div>
						</div>
					</div>

					<div class="admin_cg_main_right_body">
						<div class="admin_cg_main_right_body1">网站名称:</div>

						<div class="admin_cg_main_right_body2 clearFix">
							<input class="admin_cg_main_right_body2_put1" type="text" name="url_name" value="{$v_show['url_name']}">
							<div class="admin_cg_main_right_body2_put2" style="color:#90EE90;">网站名称，将显示在页面底部的联系方式处</div>
						</div>
					</div>

					<div class="admin_cg_main_right_body">
						<div class="admin_cg_main_right_body1">网站URL:</div>

						<div class="admin_cg_main_right_body2 clearFix">
							<input class="admin_cg_main_right_body2_put1" type="text" name="URL" value="{$v_show['URL']}">
							<div class="admin_cg_main_right_body2_put2" style="color:#90EE90;">网站 URL，将作为链接显示在页面底部</div>
						</div>
					</div>

					<div class="admin_cg_main_right_body">
						<div class="admin_cg_main_right_body1">网站备案信息代码:</div>

						<div class="admin_cg_main_right_body2 clearFix">
							<input class="admin_cg_main_right_body2_put1" type="text" name="ICP_info" value="{$v_show['ICP']}">
							<div class="admin_cg_main_right_body2_put2" style="color:#90EE90;">若网站已备案，在此输入授权码，您的 ICP 备案信息将显示在页面底部，若没有请留空</div>
						</div>
					</div>

					<div class="admin_cg_main_right_bottom">
						<div class="admin_cg_main_right_bottom_head">关闭站点:</div>
						<div class="admin_cg_main_right_bottom1">关闭站点:</div>

						<div class="admin_cg_main_right_bottom1 clearFix">
							<div class="admin_cg_main_right_bottom2_put">
								<input style="margin-left:20px;" type="radio" name="control" value="1" id="yes"><label for="yes">是</label>

								<input style="margin-left:20px;" type="radio" name="control" value="0" id="no" checked><label for="no">否</label>
							</div>

							<div class="admin_cg_main_right_bottom2_put2" style="color:#90EE90;">暂时将站点关闭，其他人无法访问，但不影响管理员访问</div>
							
						</div>
						<div class="admin_cg_main_right_last">
							<input style="margin-left:20px;"s type="submit" value="提交">
						</div>
					</div>
					{/foreach}

				</form>
				</div>
				{/if}
				<!--  版块右侧主要内容right 站点信息  结束-->

				<!--  版块右侧主要内容right2  友情链接 开始-->

				{if $_GET['cg_number'] == 2 }
				<div class="admin_cg_main_right2">
					<div class="admin_cg_main_right2_head" style="font-size:16px; font-weight: bold; color:#639bb0;">
						<span>友情链接</span>
					</div>
					<div class="admin_cg_main_right_tip">技巧提示:</div>
					<div class="admin_cg_main_right_tip2">&nbsp;&nbsp;未填写文字说明的项目将以紧凑型显示。</div>

					<!--   表格111开始  -->
						<!--   删除、修改操作开始  -->
					<table class="cg_site_table1">
						<tr>
							<th></th><th>显示顺序</th><th>站点名称</th><th>站点 URL</th><th>文字说明(可选)</th><th>logo 地址(可选)</th>
						</tr>
						<form action="{$admin_2}admin_cg_link.php" method="post" enctype="multipart/form-data">
						<!--  此处加循环条件  -->
						{foreach $res_show2 as $k2 => $v2}
						<tr>
							<td>
								<input type="checkbox" name="$arr[]" value="{$v2['lid']}">
							</td>

							<td>
								<input class="cg_site_table1_put_short" type="text" name="$orderby[{$v2['lid']}]" value="{$v2['displayorder']}">
							</td>

							<td>
								<input class="cg_site_table1_put" type="text" name="$site_name[{$v2['lid']}]" value="{$v2['name']}">
							</td>

							<td>
								<input class="cg_site_table1_put" type="text" name="$site_URL[{$v2['lid']}]" value="{$v2['url']}">
							</td>

							<td>
								<input class="cg_site_table1_put_long" type="text" name="$font_tip[{$v2['lid']}]" value="{$v2['description']}">
							</td>

							<td>
								<input class="cg_site_table1_put" type="text" name="$logo_place[{$v2['lid']}]" value="{$v2['logo']}">
							</td>
						</tr>
						{/foreach}
						<tr>
							<td>
								<input type="submit" name="caozuo" value="删除">
							</td>
								
							<td>
								<input style="margin-left:60px;" type="submit" name="caozuo" value="修改">
							</td>
						</tr>
						</form>
					</table>
						<!--   表格111结束  -->	
					<!--   删除、修改操作结束  -->

					<!--   添加操作开始  -->
						<!--   表格222开始  -->	
					<table class="cg_site_table1" style="margin-top:50px;">
						<tr>
							<th></th><th>显示顺序</th><th>站点名称</th><th>站点 URL</th><th>文字说明(可选)</th><th>logo 地址(可选)</th>
						</tr>
						<!--  此处加循环条件  -->
						<form action="{$admin_2}admin_cg_link.php" method="post" enctype="multipart/form-data">	

						<tr>
							<td></td>

							<td>
								<input class="cg_site_table1_put_short" type="text" name="orderby" value="">
							</td>

							<td>
								<input class="cg_site_table1_put" type="text" name="site_name" value="">
							</td>

							<td>
								<input class="cg_site_table1_put" type="text" name="site_URL" value="">
							</td>

							<td>
								<input class="cg_site_table1_put_long" type="text" name="font_tip" value="">
							</td>

							<td>
								<input class="cg_site_table1_put" type="text" name="logo_place" value="">
							</td>
						</tr>

						<tr>
							<td><input type="submit" name="caozuo" value="添加"></td>
						</tr>
						</form>
					</table>	
					{/if}
					<!--   添加操作结束  -->
					<!--   表格222结束  -->
				</div>
				<!--  版块右侧主要内容right2  友情链接 结束-->
			</div>
			{/if}
			{/if}
			<!-- 版块主要内容main   111111结束 -->
	
<!--111111111111111111111111111111111111111111111111111111111111111111111111-->
<!--222222222222222222222222222222222222222222222222222222222222222222222222-->
			<!-- 版块主要内容main   22222开始 -->

			{if $_GET['bighead'] == 2}

			<div class="admin_cg_main clearFix">

				<!--  版块左侧导航left -->
				
				<div class="admin_cg_main_left">
					<a href="{$web_site}admin_cg.php?bighead=2&cg_number=3">
						<div class="admin_cg_main_left_div"><span>编辑用户</span></div>
					</a>
					<a href="{$web_site}admin_cg.php?bighead=2&cg_number=4">
						<div class="admin_cg_main_left_div"><span>禁止IP</span></div>
					</a>
					<!--  版块左侧导航left 底部 (可共用)   -->
					<div class="admin_cg_main_left_bottom">
						<ul class="admin_cg_main_left_bottom_1 clearFix">
							<li>Powered</li>
							<li>&nbsp;by&nbsp;</li>
							<li style="font-weight:bold"><a href="">{$web}&nbsp;</a></li>
							<li>v2</li>
						</ul>
						<ul class="admin_cg_main_left_bottom_2 clearFix">
							<li>&copy;</li>
							<li>&nbsp;2017&nbsp;</li>
							<li><a href="">{$web}&nbsp;Inc.</a></li>
						</ul>
					</div>
				</div>

				<!--  版块右侧主要内容right -->
				{if $_GET['cg_number'] == 3}
				<div class="admin_cg_main_edit_user">
					<div class="admin_cg_main_edit_user_head" style="font-size:16px; font-weight: bold; color:#639bb0;">
						<span>用户管理</span>
					</div>
					<div class="admin_cg_main_edit_user_tip">共有 {$user_num} 条用户记录</div>
						<!--   用户表格111开始  -->
						<!--   伪删除用户操作开始  -->
					<table class="edit_user_table1">
						<tr>
							<th></th><th>用&nbsp;&nbsp;户&nbsp;&nbsp;名</th><th>积&nbsp;分</th><th><span style="margin-left:10px;">注&nbsp;&nbsp;册&nbsp;&nbsp;时&nbsp;&nbsp;间</span></th><th><span style="margin-left:50px;">用&nbsp;&nbsp;户&nbsp;&nbsp;类&nbsp;&nbsp;型</span></th><th></th><th></th><th></th>
						</tr>
						<form action="{$admin_2}admin_cg_edit_user.php" method="post" enctype="multipart/form-data">
						<!--  此处加循环条件  -->
						{foreach $res_user as $k_user => $v_user}
						<tr>
							<td>
								<span style="margin-left:50px;"><input type="checkbox" name="$arr[]" value="{$v_user['uid']}"></span>
							</td>
							<td>
								<a href=""><span style="margin-left:40px;">{$v_user['username']}</span></a>
							</td>

							<td>
								
								<span style="margin-left:40px;">{$v_user['grade']}</span>
							</td>

							<td style="width:150px;">
								<span style="margin-left:15px; font-size:12px;">{$regtime=date('Y-m-d H:i:s',$v_user['regtime'])}</span>
							</td>

							<td>
								<span style="margin-left:60px;">{$type=$v_user['usertype']==1?'管理员':'普通用户'}</span>
							</td>

							<td>
								<a href="{$web_site}admin_cg.php?bighead=2&cg_number=31&id={$v_user['uid']}"><span style="margin-left:60px;">积分</span></a>
							</td>

							<td>
								<a href="{$web_site}admin_cg.php?bighead=2&cg_number=31&id={$v_user['uid']}"><span style="margin-left:30px;">详情</span></a>
							</td>

							<td>
								<a href="{$admin_2}admin_cg_allowlogin.php?id={$v_user['uid']}&lock={$v_user['allowlogin']==1?'j':'s'}">{$lock=$v_user['allowlogin']==1?'解锁':'锁定用户'}</a>
							</td>
						</tr>
						{/foreach}
						<tr>
							<td>
								<input type="submit" name="del" value="删除">
							</td>
						</tr>
						</form>
					</table>
						<!--   用户表格111结束  -->	
				</div>
				{/if}
				<!--   伪删除用户操作结束  -->

				<!--  积分,详情链接  开始  -->

				{if $_GET['cg_number'] == 31}

				<div class="user_detail">
				{foreach $res_detail as $k_detail => $v_detail}
				<form action="{$admin_2}admin_cg_user_detail.php?uid={$v_detail['uid']}" method="post" enctype="multipart/form-data"> 
					
					<div class="user_detail_head" style="font-size:16px; font-weight: bold; color:#639bb0;">
						<span>编辑用户-{$v_detail['username']}</span>
					</div>	

					<div class="user_detail_username">
						<div class="user_detail_username1">用&nbsp;户&nbsp;名:</div>
						<div class="user_detail_username2">{$v_detail['username']}</div>
					</div>

					<div class="user_detail_tx">
						<div class="user_detail_tx_font">头&nbsp;像:</div>
						<div  class="user_detail_tx_pic"><img style="width:110px;height:110px;" src="{$web_site}{$v_detail['picture']}"></div>
					</div>
					
					<!-- 用户管理 form 表单开始-->
					<input type="hidden" name="uid" value="{$v_detail['uid']}">
					<div class="user_detail_body">
						<div class="user_detail_body1" style="font-size:15px;font-weight: bold;">新&nbsp;密&nbsp;码:</div>

						<div class="user_detail_body2 clearFix">
							<input class="user_detail_body2_put1" type="password" name="newpassword" value="">
							<div class="user_detail_body2_put2" style="color:#90EE90;">若不更改密码,此处请留空;若要更改密码,请在此处输入3~12位字符串,且不得为纯数字</div>
						</div>
					</div>
					
					<div class="user_detail_body_two">
						<div class="user_detail_body_two1" style="font-size:15px;font-weight: bold;">清除用户安全提问:</div>

						<div class="user_detail_body_two1 clearFix">
							<div class="user_detail_body_two2_put">
								<input style="margin-left:30px;" type="radio" name="clear" value="1" id="yes"><label for="yes">是</label>

								<input style="margin-left:30px;" type="radio" name="clear" value="0" id="no" checked><label for="no">否</label>
							</div>

							<div class="user_detail_body_two2_put2" style="color:#90EE90;">选择“是”将清除用户安全提问，该用户将不需要回答安全提问即可登录；选择“否”为不改变用户的安全提问设置</div>							
						</div>
					</div>
					
					<div class="user_detail_body_two">
						<div class="user_detail_body_two1" style="font-size:15px;font-weight: bold;">锁定当前用户:</div>

						<div class="user_detail_body_two1 clearFix">
							<div class="user_detail_body_two2_put">
								<input style="margin-left:30px;" type="radio" name="lock" value="1" id="yes"><label for="yes">是</label>

								<input style="margin-left:30px;" type="radio" name="lock" value="0" id="no" checked><label for="no">否</label>
							</div>

						</div>
					</div>

					<div class="user_detail_body">
						<div class="user_detail_body1" style="font-size:15px;font-weight: bold;">Email:</div>

						<div class="user_detail_body2 clearFix">
							<input class="user_detail_body2_put1" type="text" name="email" value="{$email=isset($v_detail['email'])?$v_detail['email']:''}">
							<div class="user_detail_body_two2_put2" style="color:#90EE90;">请勿为空,并按正确格式书写</div>					
						</div>
					</div>
					
					<div class="user_detail_body">
						<div class="user_detail_body1" style="font-size:15px;font-weight: bold;">注&nbsp;册&nbsp;IP:</div>

						<div class="user_detail_body2 clearFix">
							<input class="user_detail_body2_put1" type="text" name="regip" value="{$regip=isset($v_detail['regip'])?long2ip($v_detail['regip']):''}">
							<div class="user_detail_body_two2_put2" style="color:#90EE90;">请勿为空,并按正确格式书写,如：&nbsp;a . a . a . a  (其中 a 为 0~255 之间的数字)</div>					
							
						</div>
					</div>

					<div class="user_detail_body">
						<div class="user_detail_body1" style="font-size:15px;font-weight: bold;">注&nbsp;册&nbsp;时&nbsp;间:</div>

						<div class="user_detail_body2 clearFix">
							<input class="user_detail_body2_put1" type="text" name="regtime" value="{$addtime=date('Y-m-d',$v_detail['regtime'])}">
							<div class="user_detail_body_two2_put2" style="color:#90EE90;">请勿为空,并按正确格式书写,如：&nbsp;某年-某月-某日</div>					
						</div>
					</div>
					

					<div class="user_detail_body">
						<div class="user_detail_body1" style="font-size:15px;font-weight: bold;">上&nbsp;次&nbsp;访&nbsp;问:</div>

						<div class="user_detail_body2 clearFix">
							<input class="user_detail_body2_put1" type="text" name="lasttime" value="{$lasttime=date('Y-m-d',$v_detail['lasttime'])}">
							<div class="user_detail_body_two2_put2" style="color:#90EE90;">请勿为空,并按正确格式书写,如：&nbsp;某年-某月-某日</div>					
						</div>
					</div>
					{/foreach}

					<div class="user_detail_body_tip">积分奖惩</div>
					<div class="user_detail_body">
						<div class="user_detail_body1" style="font-size:15px;font-weight: bold;">积&nbsp;分:</div>

						<div class="user_detail_body2 clearFix">
							<input class="user_detail_body2_put1" type="text" name="grade" value="">
							<div class="user_detail_body2_put2" style="color:#90EE90;">直接填写积分的奖惩数值，在原有积分基础上加(或减)，惩罚积分请填写负数</div>
						</div>
					</div>

					<div class="user_detail_body_tip">论坛选项</div>
					<div class="user_detail_body">
						<div class="user_detail_body1" style="font-size:15px;font-weight: bold;">签&nbsp;名:</div>
					
						<textarea style="height:45px;"  name="autograph"  placeholder="输入80个汉字之内">{$autograph=isset($v_detail['autograph'])?$v_detail['autograph']:''}
						</textarea>
					
					</div>

					<div class="user_detail_body_tip">用户栏目</div>
					<div class="user_detail_body">
						<div class="user_detail_body1" style="font-size:15px;font-weight: bold;">真&nbsp;实&nbsp;姓&nbsp;名:</div>

						<div class="user_detail_body2 clearFix">
							<input class="user_detail_body2_put1" type="text" name="realname" value="{$realname=isset($v_detail['realname'])?$v_detail['realname']:''}" placeholder="16个字符,或5个汉字之内">
							
						</div>
					</div>

					<div class="user_detail_body">
						<div class="user_detail_body1" style="font-size:15px;font-weight: bold;">性&nbsp;别:</div>

						<div class="user_detail_body2 clearFix">
							<select name="sex" id="sex" class="user_detail_body2_put1">
								<option value="0" selected="selected">保密</option>
								<option value="1">女</option>
								<option value="2">男</option>
							</select>
						</div>
					</div>

					<div class="user_detail_body">
						<div class="user_detail_body1" style="font-size:15px;font-weight: bold;">生&nbsp;日:</div>

						<div class="user_detail_body2 clearFix">
							<select name="birthyear" id="birthyear" class="user_detail_body2_put1" onchange="showbirthday();">
								<option value="0">年</option>
								<option value="2017">2017</option>
								<option value="2016">2016</option>
								<option value="2015">2015</option>
								<option value="2014">2014</option>
								<option value="2013">2013</option>
								<option value="2012">2012</option>
								<option value="2011">2011</option>
								<option value="2010">2010</option>
								<option value="2009">2009</option>
								<option value="2008">2008</option>
								<option value="2007">2007</option>
								<option value="2006">2006</option>
								<option value="2005">2005</option>
								<option value="2004">2004</option>
								<option value="2003">2003</option>
								<option value="2002">2002</option>
								<option value="2001">2001</option>
								<option value="2000">2000</option>
								<option value="1999">1999</option>
								<option value="1998">1998</option>
								<option value="1997">1997</option>
								<option value="1996">1996</option>
								<option value="1995">1995</option>
								<option value="1994">1994</option>
								<option value="1993">1993</option>
								<option value="1992">1992</option>
								<option value="1991">1991</option>
								<option value="1990">1990</option>
								<option value="1989">1989</option>
								<option value="1988">1988</option>
								<option value="1987">1987</option>
								<option value="1986">1986</option>
								<option value="1985">1985</option>
								<option value="1984">1984</option>
								<option value="1983">1983</option>
								<option value="1982">1982</option>
								<option value="1981">1981</option>
								<option value="1980">1980</option>
								<option value="1979">1979</option>
								<option value="1978">1978</option>
								<option value="1977">1977</option>
								<option value="1976">1976</option>
								<option value="1975">1975</option>
								<option value="1974">1974</option>
								<option value="1973">1973</option>
								<option value="1972">1972</option>
								<option value="1971">1971</option>
								<option value="1970">1970</option>
								<option value="1969">1969</option>
								<option value="1968">1968</option>
								<option value="1967">1967</option>
								<option value="1966">1966</option>
								<option value="1965">1965</option>
								<option value="1964">1964</option>
								<option value="1963">1963</option>
								<option value="1962">1962</option>
								<option value="1961">1961</option>
								<option value="1960">1960</option>
								<option value="1959">1959</option>
								<option value="1958">1958</option>
								<option value="1957">1957</option>
								<option value="1956">1956</option>
								<option value="1955">1955</option>
								<option value="1954">1954</option>
								<option value="1953">1953</option>
								<option value="1952">1952</option>
								<option value="1951">1951</option>
								<option value="1950">1950</option>
								<option value="1949">1949</option>
								<option value="1948">1948</option>
								<option value="1947">1947</option>
								<option value="1946">1946</option>
								<option value="1945">1945</option>
								<option value="1944">1944</option>
								<option value="1943">1943</option>
								<option value="1942">1942</option>
								<option value="1941">1941</option>
								<option value="1940">1940</option>
								<option value="1939">1939</option>
								<option value="1938">1938</option>
								<option value="1937">1937</option>
								<option value="1936">1936</option>
								<option value="1935">1935</option>
								<option value="1934">1934</option>
								<option value="1933">1933</option>
								<option value="1932">1932</option>
								<option value="1931">1931</option>
								<option value="1930">1930</option>
								<option value="1929">1929</option>
								<option value="1928">1928</option>
								<option value="1927">1927</option>
								<option value="1926">1926</option>
								<option value="1925">1925</option>
								<option value="1924">1924</option>
								<option value="1923">1923</option>
								<option value="1922">1922</option>
								<option value="1921">1921</option>
								<option value="1920">1920</option>
								<option value="1919">1919</option>
								<option value="1918">1918</option>
							</select>
							
							<select name="birthmonth" id="birthmonth" class="user_detail_body2_put1">
								<option value="0">月</option>
								<option value="1">1</option>
								<option value="2">2</option>
								<option value="3">3</option>
								<option value="4">4</option>
								<option value="5">5</option>
								<option value="6">6</option>
								<option value="7">7</option>
								<option value="8">8</option>
								<option value="9">9</option>
								<option value="10">10</option>
								<option value="11">11</option>
								<option value="12">12</option>
							</select>

							<select name="birthday" id="birthday" class="user_detail_body2_put1">
								<option value="0">日</option>
								<option value="1">1</option>
								<option value="2">2</option>
								<option value="3">3</option>
								<option value="4">4</option>
								<option value="5">5</option>
								<option value="6">6</option>
								<option value="7">7</option>
								<option value="8">8</option>
								<option value="9">9</option>
								<option value="10">10</option>
								<option value="11">11</option>
								<option value="12">12</option>
								<option value="13">13</option>
								<option value="14">14</option>
								<option value="15">15</option>
								<option value="16">16</option>
								<option value="17">17</option>
								<option value="18">18</option>
								<option value="19">19</option>
								<option value="20">20</option>
								<option value="21">21</option>
								<option value="22">22</option>
								<option value="23">23</option>
								<option value="24">24</option>
								<option value="25">25</option>
								<option value="26">26</option>
								<option value="27">27</option>
								<option value="28">28</option>
								<option value="29">29</option>
								<option value="30">30</option>
							</select>

						</div>
					</div>

					<div class="user_detail_body">
						<div class="user_detail_body1" style="font-size:15px;font-weight: bold;">籍&nbsp;贯:</div>

						<div class="user_detail_body2 clearFix">

							<select name="place" id="place" class="user_detail_body2_put1">
								<option value="">-省份-</option>
								<option did="1" value="北京市">北京市</option>
								<option did="2" value="天津市">天津市</option>
								<option did="3" value="河北省">河北省</option>
								<option did="4" value="山西省">山西省</option>
								<option did="5" value="内蒙古自治区">内蒙古自治区</option>
								<option did="6" value="辽宁省">辽宁省</option>
								<option did="7" value="吉林省">吉林省</option>
								<option did="8" value="黑龙江省">黑龙江省</option>
								<option did="9" value="上海市">上海市</option>
								<option did="10" value="江苏省">江苏省</option>
								<option did="11" value="浙江省">浙江省</option>
								<option did="12" value="安徽省">安徽省</option>
								<option did="13" value="福建省">福建省</option>
								<option did="14" value="江西省">江西省</option>
								<option did="15" value="山东省">山东省</option>
								<option did="16" value="河南省">河南省</option>
								<option did="17" value="湖北省">湖北省</option>
								<option did="18" value="湖南省">湖南省</option>
								<option did="19" value="广东省">广东省</option>
								<option did="20" value="广西壮族自治区">广西壮族自治区</option>
								<option did="21" value="海南省">海南省</option>
								<option did="22" value="重庆市">重庆市</option>
								<option did="23" value="四川省">四川省</option>
								<option did="24" value="贵州省">贵州省</option>
								<option did="25" value="云南省">云南省</option>
								<option did="26" value="西藏自治区">西藏自治区</option>
								<option did="27" value="陕西省">陕西省</option>
								<option did="28" value="甘肃省">甘肃省</option>
								<option did="29" value="青海省">青海省</option>
								<option did="30" value="宁夏回族自治区">宁夏回族自治区</option>
								<option did="31" value="新疆维吾尔自治区">新疆维吾尔自治区</option>
								<option did="32" value="台湾省">台湾省</option>
								<option did="33" value="香港特别行政区">香港特别行政区</option>
								<option did="34" value="澳门特别行政区">澳门特别行政区</option>
								<option did="35" value="海外">海外</option>
								<option did="36" value="其他">其他</option>
							</select>
							
						</div>
					</div>
					<div class="user_detail_body">
						<input class="user_detail_body_button" type="submit" name="" value="提交">
					</div>
				</form>	
					<!-- 用户管理 form 表单结束-->
				</div>
				{/if}
				<!--  积分,详情链接  结束  -->
				
				<!--   锁定 IP 开始  -->
			{if $_GET['cg_number'] == 4}
			<div class="admin_cg_main_edit_user2">
				<div class="admin_cg_main_edit_user2_head" style="font-size:16px; font-weight: bold; color:#639bb0;">
					<span>禁止&nbsp;IP</span>
				</div>
				<div class="admin_cg_main_edit_user2_tip">技巧提示:</div>
				<div class="admin_cg_main_edit_user2_tip2">&nbsp;&nbsp;技巧提示被限制的IP地址不能访问本站。</div>
				<div class="admin_cg_main_edit_user2_tip2">&nbsp;&nbsp;有效期如果设置为空则视为永久禁止。</div>
				
				<table>
					<tr>
						<th></th><th style="font-size:14px;">IP&nbsp;&nbsp;地&nbsp;&nbsp;址</th><th style="font-size:14px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;起&nbsp;始&nbsp;时&nbsp;间</th><th style="font-size:14px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;终&nbsp;止&nbsp;时&nbsp;间</th>
					</tr>

					<form action="{$admin_2}admin_cg_lock_ip.php" method="post" enctype="multipart/form-data">

						<tr>
							<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;新增</td>

							<td><input style="width:50px;margin-left:50px;" type="TEXT" name="ip1">&nbsp;.<input style="width:50px;margin-left:10px;" type="text" name="ip2">&nbsp;.<input style="width:50px;margin-left:10px;" type="text" name="ip3">&nbsp;.<input style="width:50px;margin-left:10px;" style="width:50px;margin-left:10px;" type="text" name="ip4"></td>

							<td><input style="width:50px;margin-left:60px;" type="hidden" name=""></td>

							<td><input style="width:50px;margin-left:80px;" type="hidden" name=""></td>

							<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;有效期<input style="width:50px;margin-left:10px;" type="text" name="save_time">天</td>
						</tr>	

						<td><input style="width:40px;margin-left:30px;margin-top:20px;" type="submit" name="" value="提交"></td>
					</form>
				</table>

			
			</div>
				
				{/if}
				<!--   锁定  IP 结束  -->
			</div>
			{/if}

			<!-- 版块主要内容main   22222结束 -->
<!--2222222222222222222222222222222222222222222222222222222222222222222-->
<!--33333333333333333333333333333333333333333333333333333333333333333333-->
			<!-- 版块主要内容main   33333开始 -->
			{if $_GET['bighead'] == 3}
			<div class="admin_cg_main clearFix">

			<!--  版块左侧导航left -->


				<div class="admin_cg_main_left">
					<a href="{$web_site}admin_cg.php?bighead=3&cg_number=5">
						<div class="admin_cg_main_left_div"><span>管理版块</span></div>
					</a>
					<a href="{$web_site}admin_cg.php?bighead=3&cg_number=6">
						<div class="admin_cg_main_left_div"><span>添加版块</span></div>
					</a>
					<!--  版块左侧导航left 底部 (可共用)   -->
					<div class="admin_cg_main_left_bottom">
						<ul class="admin_cg_main_left_bottom_1 clearFix">
							<li>Powered</li>
							<li>&nbsp;by&nbsp;</li>
							<li style="font-weight:bold"><a href="">{$web}&nbsp;</a></li>
							<li>v2</li>
						</ul>
						<ul class="admin_cg_main_left_bottom_2 clearFix">
							<li>&copy;</li>
							<li>&nbsp;2017&nbsp;</li>
							<li><a href="">{$web}&nbsp;Inc.</a></li>
						</ul>
					</div>
				</div>
				<!--  版块右侧主要内容right -->


				<!--  版块右侧主要内容right -->

				{if $_GET['cg_number'] == 5}
				<div class="admin_cg_category_right">
					<div class="admin_cg_category_right_head" style="font-size:16px; font-weight: bold; color:#639bb0;">
						<span>版块管理</span>
					</div>

					<form action="{$admin_2}admin_cg_category.php" method="post" enctype="multipart/form-data">

					<div class="admin_cg_category_right_body">
						<div class="admin_cg_category_right_body_head clearFix">
							<p class="admin_cg_category_right_body_head_p1">显示顺序</p>
							<p class="admin_cg_category_right_body_head_p2">版块名称</p>
							<p class="admin_cg_category_right_body_head_p3">版主</p>
							<p class="admin_cg_category_right_body_head_p4">描述</p>
						</div>

						<!--  先全部查询出来,再分步显示  -->
						{if $res_cg0}
							{foreach $res_cg0 as $v_cg0}

							<!--  分步显示  【父模块cid 等于 子模块parentid】 -->
							{if $v_cg0['parentid'] == 0}
							<div class="admin_cg_category_right_body_parent clearFix">
								<input type="hidden" name="$cid[]" value="{$v_cg0['cid']}">
								<input class="admin_cg_category_right_body_parent_put1" type="text" name="$orderby[]" value="{$v_cg0['orderby']}">
								<input class="admin_cg_category_right_body_parent_put2" type="text" name="$classname[]" value="{$v_cg0['classname']}">
								<input type="hidden" name="$compere[]" value="{$compere}">
								<input class="admin_cg_category_right_body_parent_put3"  type="txet" name="$description[]" value="{$v_cg0['description']}">
								
								<button class="admin_cg_category_right_body_parent_button" name="button1" value="{$v_cg0['cid']}">{$true=$v_cg0['cisdel']==1?'显示':'隐藏'}</button>

								<button class="admin_cg_category_right_body_parent_button" name="button2" value="{$v_cg0['cid']}">删除</button>
							</div>
							{/if}

							<!--  先全部查询出来,再分步显示  -->
							{if $res_cg0}
							{foreach $res_cg0 as  $v_cg2}
							<!--  分步显示  -->
							{if $v_cg0['cid'] == $v_cg2['parentid']}
							<div class="admin_cg_category_right_body_son clearFix">
								<input type="hidden" name="$cid[]" value="{$v_cg2['cid']}">
								<input class="admin_cg_category_right_body_son_put1" type="text" name="$orderby[]" value="{$v_cg2['orderby']}">
								<input class="admin_cg_category_right_body_son_put2" type="text" name="$classname[]" value="{$v_cg2['classname']}">
								<input class="admin_cg_category_right_body_son_put3" type="text" name="$compere[]" value="{$v_cg2['compere']}">

								<input class="admin_cg_category_right_body_son_put4" type="text" name="$description[]" value="{$v_cg2['description']}">
		
								<button class="admin_cg_category_right_body_son_button" name="button1" value="{$v_cg2['cid']}">{$true=$v_cg0['cisdel']==1?'显示':'隐藏'}</button>

								<button class="admin_cg_category_right_body_son_button" name="button2" value="{$v_cg2['cid']}">删除</button>
							</div>
							{/if}
							{/foreach}
							{/if}	
						{/foreach}
						{/if}
							<div class="admin_cg_category_right_body_bottom">
								<input class="admin_cg_category_right_body_button" type="submit" value="提交" name="button" >
							</div>
					</div>
						
					</form>

				</div>
				
				{/if}
				<!--   版块管理   结束  -->

				<!--   添加版块   开始   -->
				{if $_GET['cg_number'] == 6}
				<div class="admin_cg_add_category">
					<div class="admin_cg_add_category_head" style="font-size:16px; font-weight: bold; color:#639bb0;">
						<span>友情链接</span>
					</div>
					<div class="admin_cg_add_category_tip">技巧提示:</div>
					<div class="admin_cg_add_category_tip2">&nbsp;&nbsp;添加时不选择大版块即为添加大版块</div>

					<form action="{$admin_2}admin_cg_add_category.php" method="post" enctype="multipart/form-data">

						<div class="admin_cg_add_category_div1 clearFix">
							<p class="admin_cg_add_category_div1_p">版块名称</p>
							<input class="admin_cg_add_category_div1_put" type="text" name="classname" value="">
						</div>
						<div class="admin_cg_add_category_div2 clearFix">
							<p class="admin_cg_add_category_div2_p">选择大板块</p>
							<select class="admin_cg_add_category_div2_sel" name="parentid">
								<option value="0">-不选择-</option>
								{if $res_x}
								{foreach $res_x as $k_x => $v_x}
								<option value="{$v_x['cid']}">{$v_x['classname']}</option>	
								{/foreach}	
								{/if}
							</select>
							
						</div>
						<div class="admin_cg_category_right_body_bottom">
							<input class="admin_cg_category_right_body_button" type="submit" value="提交" name="">
						</div>
					</form>

				</div>
				{/if}

					<!--   添加版块  结束  -->
			</div>
			{/if}

			<!-- 版块主要内容main   33333结束 -->

	<!--  333333333333333333333333333333333333333333333333333333333333   -->
	<!--  444444444444444444444444444444444444444444444444444444444444   -->

			<!-- 版块主要内容main   44444开始 -->
			{if $_GET['bighead'] == 4}
			<div class="admin_cg_main clearFix">
			<!--  版块左侧导航left -->
				
				<div class="admin_cg_main_left">
					<a href="{$web_site}admin_cg.php?bighead=4&cg_number=7">
						<div class="admin_cg_main_left_div"><span>帖子管理</span></div>
					</a>
					<a href="{$web_site}admin_cg.php?bighead=4&cg_number=8">
						<div class="admin_cg_main_left_div"><span>帖子回收站</span></div>
					</a>
					<a href="{$web_site}admin_cg.php?bighead=4&cg_number=9">
						<div class="admin_cg_main_left_div"><span>回帖管理</span></div>
					</a>
					<a href="{$web_site}admin_cg.php?bighead=4&cg_number=10">
						<div class="admin_cg_main_left_div"><span>回帖回收站</span></div>
					</a>
					<!--  版块左侧导航left 底部 (可共用)   -->
					<div class="admin_cg_main_left_bottom">
						<ul class="admin_cg_main_left_bottom_1 clearFix">
							<li>Powered</li>
							<li>&nbsp;by&nbsp;</li>
							<li style="font-weight:bold"><a href="">{$web}&nbsp;</a></li>
							<li>v2</li>
						</ul>
						<ul class="admin_cg_main_left_bottom_2 clearFix">
							<li>&copy;</li>
							<li>&nbsp;2017&nbsp;</li>
							<li><a href="">{$web}&nbsp;Inc.</a></li>
						</ul>
					</div>
				</div>
				
				<!--  版块右侧主要内容right -->

				<!--  帖子管理 开始 -->
				{if $_GET['cg_number'] == 7}
				<div class="admin_cg_main_edit_user">
					<div class="admin_cg_main_edit_user_head" style="font-size:16px; font-weight: bold; color:#639bb0;">
						<span>帖子管理</span>
					</div>
					<div class="admin_cg_main_edit_user_tip">主题数 {$num_y} </div>
						<!--   帖子表格111开始  -->
						<!--   帖子管理 开始 -->
					<table class="edit_user_table1">
						<tr>
							<th></th><th><span>标&nbsp;题</span></th><th>版&nbsp;&nbsp;块</th><th><span>作&nbsp;&nbsp;者</span></th><th><span>回&nbsp;&nbsp;复</span></th><th>浏览</th><th>最后发表</th>
						</tr>
						<form action="{$admin_2}admin_cg_post_recovery.php" method="post" enctype="multipart/form-data">
						<!--  此处加循环条件  -->
						{if $res_y}
						{foreach $res_y as $k_y => $v_y}
						<tr>
							<td>
								<span style="margin-left:50px;"><input type="checkbox" name="$arr[]" value="{$v_y['id']}"></span>
							</td>
							<td>
								<a href="{$web_site}personal.php?id={$v_y['id']}"><span style="margin-left:40px;">{$v_y['title']}</span></a>
							</td>
							
							
							<td>
								<a href="{$web_site}public.php?classid={$res_c[0]['cid']}">
									<span style="margin-left:10px;">{$res_c[0]['classname']}</span>
								</a>
							</td>
							
							<td>
							
								<span style="margin-left:35px; font-size:12px;">{$res_u[0]['username']}</span>
						
							</td>
						

							<td>
								<span style="margin-left:40px;">{$v_y['replycount']}</span>
							</td>

							<td>
								<span style="margin-left:40px;">{$v_y['hits']}</span>
							</td>

							<td>
								<span style="margin-left:10px;">{$addtime=date('Y-m-d H:i:s',$v_y['addtime'])}</span>
							</td>

						</tr>
						{/foreach}
						{/if}
						<tr>
							<td>
								<input type="submit" name="post_isdel" value="放入回收站">
							</td>
						</tr>
						</form>
					</table>
						<!--   帖子表格111结束  -->	
				</div>
				{/if}
				<!--  帖子管理 结束   -->

				<!--  帖子回收站 开始   -->
				{if $_GET['cg_number'] == 8}
				<div class="admin_cg_main_edit_user">
					<div class="admin_cg_main_edit_user_head" style="font-size:16px; font-weight: bold; color:#639bb0;">
						<span>帖子回收站</span>
					</div>
					<div class="admin_cg_main_edit_user_tip">主题数 {$num_r} </div>
						<!--   帖子回收站表格111开始  -->

					<table class="edit_user_table1">
						<tr>
							<th></th><th><span>标&nbsp;题</span></th><th>版&nbsp;&nbsp;块</th><th><span>作&nbsp;&nbsp;者</span></th><th><span>回复/浏览</span></th>
						</tr>

						<form action="{$admin_2}admin_cg_post_rev_site.php" method="post" enctype="multipart/form-data">

						<!--  此处加循环条件  -->
						{if $res_r}
						{foreach $res_r as $k_r => $v_r}
						<tr>
							<td>
								<span style="margin-left:50px;"><input type="checkbox" name="$arrid[]" value="{$v_r['id']}"></span>
							</td>
							<td>
								<a href="{$web_site}personal.php?id={$v_r['id']}"><span style="margin-left:150px;">{$v_r['title']}</span></a>
							</td>
							
							
							<td>
								<a href="{$web_site}public.php?classid={$res_rc[0]['cid']}">
									<span style="margin-left:40px;">{$res_rc[0]['classname']}</span>
								</a>
							</td>
							
							<td>
							
								<span style="margin-left:50px; font-size:12px;">{$res_ru[0]['username']}</span>
						
							</td>
						
							<td>
								<span style="margin-left:60px;">{$v_r['replycount']}/{$v_r['hits']}</span>
							</td>

						</tr>
						{/foreach}
						{/if}
						<tr>
							<td>
								<input type="submit" name="post_rev" value="删除">
							</td>

							<td>
								<input type="submit" name="post_rev" value="恢复">
							</td>
						</tr>
						</form>
					</table>
						<!--   帖子回收表格111结束  -->	
				</div>
				{/if}

				<!--  帖子回收站 结束   -->

				<!--  回帖管理   开始  -->
				{if $_GET['cg_number'] == 9}
				<div class="admin_cg_main_edit_user">
					<div class="admin_cg_main_edit_user_head" style="font-size:16px; font-weight: bold; color:#639bb0;">
						<span>回帖管理</span>
					</div>
					<div class="admin_cg_main_edit_user_tip">回帖数 {$num_re} </div>
						<!--   帖子表格111开始  -->
						<!--   帖子管理 开始 -->
					<table class="edit_user_table1">
						<tr>
						<th></th><th><span style="font-size:14px;">回&nbsp;&nbsp;复&nbsp;&nbsp;内&nbsp;&nbsp;容</span></th><th><span style="font-size:14px;">版&nbsp;&nbsp;块</span></th><th><span style="font-size:14px;">作&nbsp;&nbsp;者</span></th><th><span style="font-size:14px;">回&nbsp;&nbsp;复&nbsp;&nbsp;时&nbsp;&nbsp;间</span></th>
						</tr>
						<form action="{$admin_2}admin_cg_reply_rev_site.php" method="post" enctype="multipart/form-data">
						<!--  此处加循环条件  -->
						{if $res_re}
						{foreach $res_re as $k_re => $v_re}
						<tr>
							<td>
								<span style="margin-left:50px;"><input type="checkbox" name="$arr_re[]" value="{$v_re['id']}"></span>
							</td>
							<td>
								<a href="{$web_site}personal.php?id={$v_re['tid']}">
									<span style="margin-left:150px;">{$v_re['content']}</span>
								</a>
							</td>
							
							
							<td>
								<a href="{$web_site}public.php?classid={$res_c[0]['cid']}">
									<span style="margin-left:40px;">{$res_rec[0]['classname']}</span>
								</a>
							</td>
							
							<td>
							
								<span style="margin-left:50px; font-size:12px;">{$res_reu[0]['username']}</span>
						
							</td>
						
							<td>
								<span style="margin-left:20px;">{$addtime=date('Y-m-d H:i:s',$v_re['addtime'])}</span>
							</td>

						</tr>
						{/foreach}
						{/if}
						<tr>
							<td>
								<input type="submit" name="reply_isdel" value="放入回收站">
							</td>
						</tr>
						</form>
					</table>
						<!--   帖子表格111结束  -->	
				</div>
				{/if}
				<!--  帖子管理 结束   -->


				<!--  回帖回收站  开始  -->

				{if $_GET['cg_number'] == 10}

				<div class="admin_cg_main_edit_user">
					<div class="admin_cg_main_edit_user_head" style="font-size:16px; font-weight: bold; color:#639bb0;">
						<span>回帖回收站</span>
					</div>
					<div class="admin_cg_main_edit_user_tip">主题数 {$num_rr} </div>
						<!--   回帖管理 表格111开始  -->

					<table class="edit_user_table1">
						<tr>
							<th></th><th><span>回&nbsp;&nbsp;复&nbsp;&nbsp;内&nbsp;&nbsp;容</span></th><th>版&nbsp;&nbsp;块</th><th><span>作&nbsp;&nbsp;者</span></th>
						</tr>

						<form action="{$admin_2}admin_cg_reply_recovery.php" method="post" enctype="multipart/form-data">

						<!--  此处加循环条件  -->
						{if $res_rr}
						{foreach $res_rr as $k_rr => $v_rr}
						<tr>
							<td>
								<span style="margin-left:50px;"><input type="checkbox" name="$arr_reid[]" value="{$v_rr['id']}"></span>
							</td>
							<td>
								<a href="{$web_site}personal.php?id={$v_rr['tid']}"><span style="margin-left:150px;">{$v_rr['content']}</span></a>
							</td>
							
							
							<td>
								<a href="{$web_site}public.php?classid={$res_rrc[0]['cid']}">
									<span style="margin-left:70px;">{$res_rrc[0]['classname']}</span>
								</a>
							</td>
							
							<td>
							
								<span style="margin-left:130px; font-size:12px;">{$res_rru[0]['username']}</span>
						
							</td>
						
						</tr>
						{/foreach}
						{/if}
						<tr>
							<td>
								<input type="submit" name="reply_rev" value="删除">
							</td>

							<td>
								<input type="submit" name="reply_rev" value="恢复">
							</td>
						</tr>
						</form>
					</table>
						<!--   帖子回收表格111结束  -->	
				</div>
				{/if}




				<!--  回帖回收站  结束  -->




				<!-- bingo -->
			</div>
			{/if}
			<!-- 版块主要内容main   44444结束 -->
			
		</div>
	</body>
</html>